package com.example.zuoye.entity;


import lombok.Data;
import lombok.NoArgsConstructor;


// @Data
// 用于省略对象的get()和set()方法
//
// @NoArgsConstructor
// 当类中有 final 字段没有被初始化时,编译器会报错,此时可用 @NoArgsConstructor(force = true),
// 会为没有初始化的 final 字段设置默认值 0 / false / null

//@Data
@NoArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String password;
    private String phone;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
